package com.smalljj.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smalljj.domain.Person;
import com.smalljj.service.PersonService;

@Controller
@RequestMapping("test")
public class TestController {
	
	@Autowired
	private PersonService personService;
	
	@RequestMapping( value="/index.html" ) 
	@ResponseBody
	public String testStr() throws Exception {
		personService.saveUser(new Person("finaler"));
		return "asdf";
	}

}
